﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace 测试
{
    class Program
    {
        static void Main(string[] args)
        {
            TestInvoke();
            Console.ReadKey();
        }


        static void TestInvoke()
        {
            Func<string,string> ss = (x) =>
            {
                Thread.Sleep(1000);
                Console.WriteLine(x);
                return "ss";
            };

            ss.BeginInvoke("vvv", (x) =>
            {
                var zz = ss.EndInvoke(x);
                Console.WriteLine(zz);
            }, null);
            Console.WriteLine("aaa");

        }
    }
}
